package csc.fresher.controller;

import java.text.DateFormat;
import java.util.Date;
import java.util.List;
import java.util.Locale;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import csc.fresher.dao.UserInfoDAO;
import csc.fresher.domain.History;
import csc.fresher.domain.UserInfo;

/**
 * Handles requests for the application home page.
 */
@Controller
@RequestMapping(value="/")
public class HomeController {
	
	public static String page = "index";
	
	/**
	 * Simply selects the home view to render by returning its name.
	 */
	@RequestMapping
	public String home() {
		return "index";
	}
	
}
